﻿using Lanbt.Core.Web.Controllers.Base;
using Lanbt.Core.Web.Models;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;

namespace Lanbt.Core.Web.Controllers
{
    public class HomeController : ViewController
    {
        /// <summary>
        /// 主框架
        /// </summary>
        /// <returns></returns>
        public IActionResult Layout() => View();

        /// <summary>
        /// 首页
        /// </summary>
        /// <returns></returns>
        public IActionResult Index() => View();

        /// <summary>
        /// 个人信息
        /// </summary>
        /// <returns></returns>
        public IActionResult PersonalInfo() => View();

        /// <summary>
        /// 设置
        /// </summary>
        /// <returns></returns>
        public IActionResult Setting() => View();

        /// <summary>
        /// 错误页面
        /// </summary>
        /// <returns></returns>
        [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
        public IActionResult Error()
        {
            return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
        }

    }
}